package com.twu.biblioteca.customer;

import com.twu.biblioteca.book.Book;

import java.util.Vector;


public class Customer {

    private Vector<Book> reservedBooks;
    private String name;
    private String libraryNumber;
    private String password;
    private String emailAddress;
    private String phoneNumber;
//
//    public Customer() {
//        this.reservedBooks = new Vector<Book>();
//    }

    public Customer(String name, String emailAddress, String phoneNumber) {
        this.name = name;
        this.emailAddress = emailAddress;
        this.phoneNumber = phoneNumber;
        this.reservedBooks = new Vector<Book>();
    }

    public Vector<Book> getReservedBooks() {
        return this.reservedBooks;
    }

    public void setLibraryNumber(String libraryNumber) {
        this.libraryNumber = libraryNumber;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void addReservedBook(Book book) {
        this.reservedBooks.addElement(book);
    }

    public String toString() {
        return name + "," + emailAddress + "," + phoneNumber + "\n";
    }

    public String getLibraryNumber() {
        return libraryNumber;
    }

    public String getPassword() {
        return password;
    }
}